package app.models.activity;

import com.github.sog.annotation.TableBind;
import com.github.sog.plugin.sqlinxml.SqlKit;
import com.jfinal.plugin.activerecord.Model;

import java.util.List;

/**
 * <p>
 * .
 * </p>
 *
 * @author liuhui
 * @version 1.0 2014-05-12 11:11
 * @since JDK 1.6
 */
@TableBind(tableName = "ol_mall_comment")
public class MallComment extends Model<MallComment> {
    public static final MallComment dao = new MallComment();
    private static final long serialVersionUID = 1068623934450155736L;

    /**
     * 查询评论
     * @param activity 活动id
     */
    public List<MallComment> findByActivity(long activity) {
        return find(SqlKit.sql("mallcomment.findByActivity"), activity);
    }
}
